package org.jeecg.modules.demo.dz.entity;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 购物清单
 * @Author: jack
 * @Date:   2024-11-24
 * @Version: V1.0
 */
@Data
@TableName("dz_material_sku_cart")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="dz_material_sku_cart对象", description="购物清单")
public class DzMaterialSkuCart implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**产品名称*/
	@Excel(name = "产品名称", width = 15)
    @ApiModelProperty(value = "产品名称")
    private String spuName;
	/**产品型号*/
	@Excel(name = "产品型号", width = 15, dictTable = "dz_material_sku", dicText = "sku_no", dicCode = "id")
	@Dict(dictTable = "dz_material_sku", dicText = "sku_no", dicCode = "id")
    @ApiModelProperty(value = "产品型号")
    private String skuId;
	/**数量*/
	@Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private Integer quantity;
	/**是否删除*/
	@Excel(name = "是否删除", width = 15)
    @ApiModelProperty(value = "是否删除")
    private Integer isDeleted;
	/**操作时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "操作时间")
    private Date createTime;
	/**操作账号*/
    @ApiModelProperty(value = "操作账号")
    private String createBy;
    @ApiModelProperty(value = "操作人")
    private String createId;

    @TableField(exist = false)
    @ApiModelProperty(value = "产品型号")
    private String skuNo;
    @TableField(exist = false)
    @ApiModelProperty(value = "所属分类")
    private String categoryFullPath;
    @TableField(exist = false)
    @ApiModelProperty(value = "最低价")
    private BigDecimal minPrice;
    @TableField(exist = false)
    @ApiModelProperty(value = "最高价")
    private BigDecimal maxPrice;
    @TableField(exist = false)
    @ApiModelProperty(value = "原价")
    private BigDecimal originPrice;
    @TableField(exist = false)
    @ApiModelProperty(value = "现价")
    private BigDecimal nowPrice;
    @TableField(exist = false)
    @ApiModelProperty(value = "sku图片")
    private String imageUrl;
}
